<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"      
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:ic="http://ivyteam.ch/jsf/component"
      xmlns:p="http://primefaces.org/ui"
      xmlns:pe="http://primefaces.org/ui/extensions"
      xmlns:pm="http://primefaces.org/mobile">
 
    <h:head>
        <title>#{ivy.cms.co('/axonactive/vision/training/pageTitleLogin')}</title>
    </h:head>
    <h:body>
    	<p:outputPanel >
        <h3>#{ivy.cms.co('/axonactive/vision/training/lblExamination')}</h3>
        <h:form id="frmLogin" >
            <p:fieldset >
	            <h:panelGrid id="loginFields" columns="3" cellpadding="2" columnClasses="label-top">
	            	<p:outputLabel value="#{ivy.cms.co('/axonactive/vision/training/lblUsername')}"></p:outputLabel>
	            	<p:inputText id="username" value="#{data.username}" required="true" requiredMessage="#{ivy.cms.co('/axonactive/vision/training/lblRequired')}"></p:inputText>
	            	<p:message for="username"></p:message>
	            	<p:outputLabel  value="#{ivy.cms.co('/axonactive/vision/training/lblPassword')}"></p:outputLabel>
	            	<p:password id="password" value="#{data.password}" required="true" requiredMessage="#{ivy.cms.co('/axonactive/vision/training/lblRequired')}"></p:password>
	            	<p:message for="password"></p:message>
	           	</h:panelGrid>
            	<p:commandButton id="btnLogin" value="#{ivy.cms.co('/axonactive/vision/training/btnLoginSubmit')}" actionListener="#{logic.onClickSubmit}" update="loginFields"></p:commandButton>
            </p:fieldset>
        </h:form>    	
        </p:outputPanel>
        <p:dialog id="dialogLogin" header="Warning" widgetVar="dialogLogin" modal="true">
        	<p:outputLabel value="#{ivy.cms.co('/axonactive/vision/training/msgUserNotExsist')}"></p:outputLabel>
        </p:dialog>
        
    </h:body>
</html>